package com.liang.auth.domain.convert;

import com.liang.auth.domain.bo.AuthUserBO;
import com.liang.auth.infra.basic.entity.AuthUser;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface AuthUserBOConverter {
    AuthUserBOConverter INSTANCE = Mappers.getMapper(AuthUserBOConverter.class);

    AuthUser convertBO2PO(AuthUserBO authUserBO);

    AuthUserBO convertPO2BO(AuthUser authUser);

    List<AuthUserBO> convert2BOList(List<AuthUser> userList);
}
